﻿/*
SINACOR - BMF&Bovespa
Arquivo: NoDescarte.cs
Criado em: 07-abr-2010 15:53:20
Arquiteto Responsável: p-RAMelo
*/
using System;
using System.Collections.Generic;
using System.Text;
using Sinacor.Infra.UI.Common;
using System.Collections;


namespace Sinacor.UI.Bovespa.ManutencaoOrdens.Model 
{
	/// <summary>
	/// Nó representa uma lixeira onde os negócios ou ordens serão cancelados caso
	/// sejam movidos para este nó
	/// </summary>
	[Serializable]
	public class NoDescarte : BaseModel, Sinacor.Infra.UI.Common.IHierarchicalItem 
	{

		#region Construtor

		/// <summary>
		/// Construtor padrão
		/// </summary>
		/// <param name="parent"></param>
		public NoDescarte(IHierarchicalItem parent)
		{
		    _parent = parent;			
		}

		#endregion

		#region Atributos

		private IEnumerable _children;
		private IHierarchicalItem _parent;

		#endregion

		#region Métodos

        /// <summary>
        /// Children
        /// </summary>
        /// <returns></returns>
		public IEnumerable Children
		{
            get { return (System.Collections.IEnumerable)_children; }
		}

        /// <summary>
        /// Parent
        /// </summary>
        /// <returns></returns>
		public IHierarchicalItem Parent
		{
            get 
            { 
                return (IHierarchicalItem)_parent; 
            }
            set
            {
                SetValue<IHierarchicalItem>("Parent", ref _parent, value);
            }

		}



        /// <summary>
        /// Text
        /// </summary>
        /// <returns></returns>
		public String Text
		{
            get { return PSE.Framework.UI.Resources.ResourceProviderManager.GetResourceProvider().TryGetResource("Bovespa.ManutencaoOrdens.Label.Descarte").ToString(); }
		}

		#endregion

	}

}